﻿namespace ctolua.Models
{
    public static class MDebug
    {

        /// <summary>
        /// (调试)绘制网格线
        /// </summary>
        /// <param name="role ">  玩家   </param>
        /// <param name="start_x ">  起点x   </param>
        /// <param name="start_y ">  起点y   </param>
        /// <param name="height ">  高度   </param>
        /// <param name="space ">  间距   </param>
        /// <param name="line_count ">  线数   </param>
        /// <param name="r ">  r   </param>
        /// <param name="g ">  g   </param>
        /// <param name="b ">  b   </param>
        public static void draw_grid_polyline(Role role, int? start_x, int? start_y, int? height, int? space, int? line_count, int? r, int? g, int? b) => game_api.draw_grid_polyline(role, start_x, start_y, height, space, line_count, r, g, b);

        /// <summary>
        /// (调试)绘线
        /// </summary>
        /// <param name="point_list ">  点   </param>
        /// <param name="height ">  高度   </param>
        /// <param name="r ">  r   </param>
        /// <param name="g ">  g   </param>
        /// <param name="b ">  b   </param>
        /// <returns>索引</returns>
        public static void draw_polyline(dynamic point_list, int? height, int? r, int? g, int? b) => game_api.draw_polyline(point_list, height, r, g, b);

        /// <summary>
        /// (调试)绘制矩形
        /// </summary>
        /// <param name="point_list ">  点   </param>
        public static void draw_box(dynamic point_list) => game_api.draw_box(point_list);

        /// <summary>
        /// (调试)隐藏所有矩形
        /// </summary>
        public static void hide_all_rect() => game_api.hide_all_rect();

        /// <summary>
        /// (调试)清除调试绘线
        /// </summary>
        /// <param name="index ">  索引   </param>
        public static void clear_grid_polyline(int? index) => game_api.clear_grid_polyline(index);

        /// <summary>
        /// (调试)设置billboard字体大小
        /// </summary>
        /// <param name="role ">  玩家   </param>
        /// <param name="size ">  大小   </param>
        public static void set_billboard_font_size(Role role, int? size) => game_api.set_billboard_font_size(role, size);
    }
}
